package com.probiz.estore.product.service;

import java.util.List;

import com.probiz.estore.common.model.product.ProductAttGroup;
import com.probiz.estore.common.model.product.ProductType;
import com.probiz.estore.core.service.GenericManager;

/**
 * Manager interface for ProductAttGroup, responsible for business processing, and communicate between web and persistence layer.
 *
 */
public interface ProductAttGroupManager extends GenericManager<ProductAttGroup> {
	/**
	 * 保存Groups，从数组中获取必要参数
	 * @param productType 商品类型
	 * @param groupIds productAttGroup id数组
	 * @param groupNames productAttGroup name数组
	 * @param groupSortOrder productAttGroup sortOrder 数组
	 * @return 属性组新id集合
	 */
	public List<String> saveGroupsFromArrays(ProductType productType,
			String[] groupIds, String[] groupNames, String[] groupSortOrders);
	/**
	 * 根据商品类型id获得属性组
	 * @param productTypeId
	 * @return 属性组集合
	 */
	public List<ProductAttGroup> getProductAttGroupsByProductTypeId(
			Integer productTypeId);
	
	
}
